# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-django-timezone-field
_pkgname=django-timezone-field
pkgver=4.0
pkgrel=0
pkgdesc="A Django app providing database and form fields for pytz timezone objects"
options="!check" # Testsuite is only coverage and flake8 tests
url="https://pypi.python.org/pypi/django-timezone-field"
arch="noarch"
license="BSD-2-Clause"
depends="py3-django py3-tz"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/mfogel/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-django-timezone-field" # Backwards compatibility
provides="py-django-timezone-field=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build

}

check() {
	python3 tests.py
}

package() {
	python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
}

sha512sums="177a13489d8ef990c1c58ce22f4fd989f763ee7d63473898e3e46cfe27d2d2e09e2e777a24bf09ad7a115a50ba35e93021914dfaeafc482cb09c03e319e8279c  py3-django-timezone-field-4.0.tar.gz"
